Variables are declared by giving the TYPE SPECIFIER followed by the identifier. A statement declaring 'average' to identify an integer variable is:
int average;
The SIZE of an integer is machine-dependent. The 'int' type specifier may be preceded or replaced by the keywords: short, long, or unsigned, to alter the storage. In TC, short ints and ints both occupy 16 bits and long ints occupy 32 bits. An unsigned int allows all 16 bits to be used for the magnitude of the number, so that a number from 0 to 65,535 (rather than plus or minus 32,767) can be represented.
Integer constants are expressed as a sequence of digits with optional minus sign. A letter 'L' may be appended to indicate a long int constant: